#ifndef _ZEDITBOX_H_
#define _ZEDITBOX_H_

typedef struct _EDITBOXVERTEX
{
	D3DXVECTOR3 p;
	DWORD		Color;
	enum { FVF = D3DFVF_XYZ | D3DFVF_DIFFUSE };
}EDITBOXVERTEX, *LP_EDITBOXVERTEX;

class ZEditBox : public ZCommonModel
{
public:
	ZEditBox();
	~ZEditBox();
	HRESULT Init() { return S_OK; }
	HRESULT Init( INT a_BoxSize );
	
	VOID CleanUp();
	VOID Draw( D3DXVECTOR3& a_vecCamera );
	

private:
	VOID _InitCullVector();
	VOID _InitVB();
	HRESULT _CopyVB( LP_EDITBOXVERTEX a_v, IDirect3DVertexBuffer9** a_pVB );

	LP_EDITBOXVERTEX m_pV;

	LPDIRECT3DVERTEXBUFFER9 m_pVB[6];

	INT m_iBoxSize;
	INT m_iVertexNum;
	INT m_iLineNum;

	FLOAT m_fNumberHalf;

	D3DXVECTOR3 m_vecCamera;
	D3DXVECTOR3 m_vecBoxN[6];
	FLOAT		m_fRadius[6];
};

#endif